import java.util.Random;
import java.util.concurrent.Callable;

/**
 * @author zhu
 * @date 2024-03-19
 */
public class MyThread extends Thread {
    int m;
    int n;
    int result;
    public MyThread(){}
    public MyThread(int m,int n){
        this.m = m;
        this.n = n;
        this.result = 0;
    }

    @Override
    public void run() {
        for (int i = m; i < n; i++) {
            result += i;
        }
    }
    public int getResult(){
        return result;
    }
}
